﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataLayer.Infrastructure;
using ModelLayer;

namespace BusinessLayer
{
    public class DashboardManager
    {
        public IEnumerable<Category> GetAllMenuCategories()
        {
            IEnumerable<Category> categories;
            using (var uow = new UnitOfWork())
            {
                categories = uow.CategoryRepo.Get();
            }

            return categories;
        }
    }
}
